]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Update background on workarea changes
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 15 Feb 2021 20:35:24 +0000 (17:35 -0300)
committerMarge Bot <marge-bot@gnome.org>
Sun, 21 Feb 2021 15:47:12 +0000 (15:47 +0000)
commitb05280a2cd9275270bbeb9b697ff2c41923c8161
treef6b7f34cd18dd331ba093396c25ea01afaa696f2
parent9d4f017248fb64d6ca6c7dd350ab833fe99c3a21
workspace: Update background on workarea changes

The WorkspaceBackground class has specific code to clip the background
to the workarea. However, it doesn't monitor for workarea changes, which
means it cannot react after being created.

Connect to 'workareas-changed', and update the workarea, the radius bounds,
and relayout when workareas change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1691>
js/ui/workspace.js